package com.springcloud.sc.ucp.v5.api.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;


import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhl
 * @since 2019-06-11
 */
@Data
@TableName("ucp_conversation_record")
public class UcpConversationRecord extends Model<UcpConversationRecord> {

    private static final long serialVersionUID = 1L;

    @TableId(value="id", type= IdType.ID_WORKER_STR)
    private String id;
    /**
     * 呼叫关联ID, 用户查询通话记录对应的媒体
     */
    @TableField("ucr_call_ref_id")
    private String ucrCallRefId;
    /**
     * 主叫号码
     */
    @TableField("ucr_caller_number")
    private String ucrCallerNumber;
    /**
     * 主叫号码名称
     */
    @TableField("ucr_caller_name")
    private String ucrCallerName;
    /**
     * 被叫号码
     */
    @TableField("ucr_callee_number")
    private String ucrCalleeNumber;
    /**
     * 被叫名称
     */
    @TableField("ucr_callee_name")
    private String ucrCalleeName;
    /**
     * 组号码 - 组呼时存在被叫号码
     */
    @TableField("ucr_grpdn_number")
    private String ucrGrpdnNumber;
    /**
     * 组号码名称
     */
    @TableField("ucr_grpdn_name")
    private String ucrGrpdnName;
    /**
     * 呼叫开始时间
     */
    @TableField("ucr_s_time")
    private Date ucrSTime;
    /**
     * 呼叫开始通话时间
     */
    @TableField("ucr_a_time")
    private Date ucrATime;
    /**
     * 呼叫结束时间
     */
    @TableField("ucr_e_time")
    private Date ucrETime;
    /**
     * 呼叫类型
     */
    @TableField("ucr_call_type")
    private String ucrCallType;
    /**
     * 呼叫类型名称
     */
    @TableField("ucr_call_name")
    private String ucrCallName;
    /**
     * 呼叫方向
     */
    @TableField("ucr_ot")
    private String ucrOt;
    /**
     * 创建时间
     */
    @TableField("gmt_create_date")
    private Date gmtCreateDate;
    /**
     * 修改时间
     */
    @TableField("gmt_modified_date")
    private Date gmtModifiedDate;
    @TableField("del_flag")
    private String delFlag;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "UcpConversationRecord{" +
        ", id=" + id +
        ", ucrCallRefId=" + ucrCallRefId +
        ", ucrCallerNumber=" + ucrCallerNumber +
        ", ucrCallerName=" + ucrCallerName +
        ", ucrCalleeNumber=" + ucrCalleeNumber +
        ", ucrCalleeName=" + ucrCalleeName +
        ", ucrGrpdnNumber=" + ucrGrpdnNumber +
        ", ucrGrpdnName=" + ucrGrpdnName +
        ", ucrSTime=" + ucrSTime +
        ", ucrATime=" + ucrATime +
        ", ucrETime=" + ucrETime +
        ", ucrCallType=" + ucrCallType +
        ", ucrCallName=" + ucrCallName +
        ", ucrOt=" + ucrOt +
        ", gmtCreateDate=" + gmtCreateDate +
        ", gmtModifiedDate=" + gmtModifiedDate +
        ", delFlag=" + delFlag +
        "}";
    }
}
